//
//  BookButton.h
//  i读
//
//  Created by 王枫楠 on 15/12/10.
//  Copyright © 2015年 123. All rights reserved.
//

#import <UIKit/UIKit.h>
@class BookButton,BookModel;
@protocol BookButtonDelegate <NSObject>

@optional
- (void)bookButtonDidClickedButton:(BookButton *)bookButton;
@end

@interface BookButton : UIView
@property (strong, nonatomic) UIButton *bookButton1;
@property (strong, nonatomic) UIButton *bookButton2;
@property (strong, nonatomic) UIButton *bookButton3;
@property (strong, nonatomic) UILabel *bookLabel;
@property (nonatomic, weak) id<BookButtonDelegate> delegate;

- (instancetype)initWithFrame:(CGRect)frame
                     topImage:(UIImage *)topImage
                  middleImage:(UIImage *)middleImage
                  bottomImage:(UIImage *)bottomImage
                    bookTitle:(NSString *)title;
- (void)updataBookButtonImageWithtopImage:(UIImage *)topImage bottomImage:(UIImage *)bottomImage middleImage:(UIImage *)middleImage title:(NSString *)title;
- (void)updataBookButtonImageWithBookList:(NSArray <BookModel *>*)bookList title:(NSString *)title;
- (void)updataShelfBookButtonImageWithBookList:(NSArray <BookModel *>*)bookList title:(NSString *)title;

@end
